Rewrite rule inference using equality saturation
نویسندگان
چکیده
Many compilers, synthesizers, and theorem provers rely on rewrite rules to simplify expressions or prove equivalences. Developing can be difficult: may subtly incorrect, profitable are easy miss, rulesets must rechecked extended whenever semantics tweaked. Large also challenging apply: redundant slow down rule-based search frustrate debugging. This paper explores how equality saturation, a promising technique that uses e-graphs apply rules, used infer rules. E-graphs compactly represent the exponentially large sets of enumerated terms potential We show saturation efficiently shrinks both sets, leading faster synthesis smaller, more general rulesets. prototyped these strategies in tool dubbed Ruler. Compared similar built CVC4, Ruler synthesizes 5.8× smaller 25× without compromising proving power. In an end-to-end case study, we Ruler-synthesized which perform as well those crafted by domain experts, addressed longstanding issue popular open source tool.
منابع مشابه
Equality saturation : engineering challenges and applications
of the Dissertation . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi Chapter
متن کاملRewrite Rule Systems for Modal Propositional Logic
D This paper explains new results relating modal propositional logic and rewrite rule systems. More precisely, we give complete term rewriting systems for the modal propositional systems known as K, Q, T, and S5. These systems are presented as extensions of Hsiang’s system for classical propositional calculus. We have checked local confluence with the rewrite rule system K.B. (cf. the Knuth-Ben...
متن کاملOn Termination of One Rule Rewrite Systems
The undecidability of the termination of rewrite systems is usually proved by reduction to the halting of Turing machines. In particular, Dauchet proves the unde-cidability of the termination of one rule rewrite systems by coding Turing machines into one rule rewrite systems. Rewrite systems are a very simple model of computation and one may expect proofs in this model to be more straightforwar...
متن کاملAn Overview of Rewrite Rule Laboratory (RRL)
RRL (Rewrite Rule Laboratory) was originally developed as an environment for experimenting with automated reasoning algorithms for equational logic based on rewrite techniques. It has now matured into a full-edged theorem prover which has been used to solve hard and challenging mathematical problems in automated reasoning literature as well as a research tool for investigating the use of formal...
متن کاملAbstract Saturation-Based Inference
Saturation-Based Inference Nachum Dershowitz∗ School of Computer Science Tel-Aviv University P.O. Box 39040 Ramat Aviv, Tel-Aviv 69978 Israel Email: [email protected] Claude Kirchner LORIA & INRIA 615, rue du Jardin Botanique B.P. 101 54602 Villers-lès-Nancy Cedex France [email protected]
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Proceedings of the ACM on programming languages
سال: 2021
ISSN: ['2475-1421']
DOI: https://doi.org/10.1145/3485496